import "./assets/main.css";

import { createApp } from "vue";
import { createPinia } from "pinia";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import App from "./App.vue";
import router from "./router";
import persistedstate from "pinia-plugin-persistedstate";
// element国际化
import zhCn from "element-plus/es/locale/lang/zh-cn";

const pinia = createPinia();
// 将持久化插件注册到 Pinia
pinia.use(persistedstate);
const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn,
});
app.use(pinia);
app.use(router);

app.mount("#app");
